using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DomainLayer.Data.Entities;

namespace Infrastructure.Data.Mapping
{
	public class RoleMenuMap : EntityTypeConfiguration<RoleMenu>
	{
		public RoleMenuMap()
		{
			// Primary Key
			this.HasKey(t => t.RoleMenuID);

			// Properties
			// Table & Column Mappings
			this.ToTable("RoleMenu");
			this.Property(t => t.RoleMenuID).HasColumnName("RoleMenuID");
			this.Property(t => t.RoleID).HasColumnName("RoleID");
			this.Property(t => t.MenuID).HasColumnName("MenuID");
			this.Property(t => t.IsDeleted).HasColumnName("IsDeleted");
			this.Property(t => t.CreatBy).HasColumnName("CreatBy");
			this.Property(t => t.CreatStation).HasColumnName("CreatStation");
			this.Property(t => t.CreatTime).HasColumnName("CreatTime");
			this.Property(t => t.UpdateBy).HasColumnName("UpdateBy");
			this.Property(t => t.UpdateTime).HasColumnName("UpdateTime");
			this.Property(t => t.UpdateStation).HasColumnName("UpdateStation");
		}
	}
}

